user_data = ["ZY"]
password_data = "666666"

username = input("请输入正确的账号：")
password = input("请输入正确的密码：")

if user_data == username:
    if password_data == password:
        print("登陆成功", username)
    else:
        print("密码错误，请重新输入")
        username = input("请输入正确的账号：")
        password = input("请输入正确的密码：")
        if user_data == username:
            if password_data == password:
                print("登陆成功", username)

if user_data == username:
    print("今天您有5次查询课表的机会")
    print("请输入时间.为您推出您想要的课程表")
    count = 5
    while True:
        count -= 1
        if count == 0:
            print("您今天的机会已用完")
            break
        else:
            print("您今天还有", count, "次机会")

            date = input("time: ")
            day = time.strptime(date, '%Y-%m-%d')
            week_time = int(time.strftime('%w', day))
            print("周" + str(week_time))
            if week_time == 1:
                print("3-5 Python语言");
            elif week_time == 2:
                print("8-10 网站运营");
            elif week_time == 3:
                print("10-12 大学英语");
            elif week_time == 4:
                print("3-5 毛概")


